//
//  SRDataView.h
//  SportRing
//
//  Created by elwin on 10/30/14.
//  Copyright (c) 2014 HotOne. All rights reserved.
//

#import "LGBaseView.h"

@interface SRDataViewModels : NSObject

@property (nonatomic, strong)NSArray *dataArray;

@end

@interface SRDataViewModel : NSObject

@property (nonatomic, assign)float distance;
@property (nonatomic, assign)float steps;
@property (nonatomic, assign)float kalorie;
@property (nonatomic, assign)float process;
@property (nonatomic, strong)NSDate *creatDate;
@end

@protocol SRDataViewDelegate <NSObject>

- (void)clickedOnLineKeyPoint:(CGPoint )point lineIndex:(NSInteger)lineIndex andPointDate:(NSDate *)date;
- (void)updateData;
@end

@interface SRDataView : LGBaseView

- (void)setSRDataViewData:(SRDataViewModels *)models total:(SRDataViewModel *)model;

@property (nonatomic, assign)IBOutlet id<SRDataViewDelegate> dataDelegate;

- (void)refreshData;

- (void)stopAnimating;


@end
